home *** CD-ROM | disk | FTP | other *** search
- Path: anvil.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: F-keys/cursor keys w/curses?
- Date: 28 Feb 1996 12:00:01 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4h2c81INNgbe@anvil.ugrad.cs.ubc.ca>
- References: <schellerDnHwLr.FJ9@netcom.com>
- NNTP-Posting-Host: anvil.ugrad.cs.ubc.ca
- Keywords: function, cursor, curses, input
-
- In article <schellerDnHwLr.FJ9@netcom.com>,
- Mark J. Scheller <scheller@netcom.com> wrote:
- >I'm making an attempt at coding some simple text screens using curses. One
- >thing I would like to do is take action based on the user pressing a cursor
- >key or a function key.
- >
- >I'm using getch() to grab the keypresses -- the problem is that the cursor
- >keys and the function keys return multiple key sequences for a keypress.
- >Is there something better to use?
-
- Check that your TERM variable or TERMCAP matches your terminal.
-
- call keypad(stdscr,TRUE); at the start of the application, and any time you
- come back from a shell-out (if you do that).
-
- Go to comp.unis.programmer
-
- >This is on an HP, hpux 9.03.
-
- HP-UX curses is awful. My condolences!
-
- Don't use curses. Get ncurses.
-
- --
-
-